﻿using System.Collections.Generic;

namespace Dorm.Testes
{
    public class Entity
    {
        public long ID { get; set; }
    }

    public class Person : Entity
    {
        public string Name { get; set; }
        public UserType Type { get; set; }
        public List<Profile> Profiles { get; set; }
        public List<Permission> Permissions { get; set; }
        public Address HomeAddress { get; set; }
    }

    public class Address
    {
        public string Street { get; set; }
        public int Number { get; set; }
        public string City { get; set; }
    }

    public class UserType : Entity
    {
        public string Name { get; set; }
    }

    public class Profile : Entity
    {
        public string Name { get; set; }
        public List<Person> Users { get; set; }
        public List<Permission> Permissions { get; set; }
    }

    public class Permission : Entity
    {
        public Profile Profile { get; set; }
        public Person SystemUser { get; set; }
        public string ScreenName { get; set; }
    }
}
